import request from "@/utils/request";
export function stockList(data) {
  return request({
    url: "/smkapi/Takestock/stockList",
    method: "post",
    data
  });
}
//预盘点单商品列表
export function getReadyStockGoodList(data) {
  return request({
    url: "/smkapi/Takestock/getReadyStockGoodList",
    method: "post",
    data
  });
}
//添加预盘点单商品按照有库存的商品添加
export function addReadyStockGoodByStockGood(data) {
  return request({
    url: "/smkapi/Takestock/addReadyStockGoodByStockGood",
    method: "post",
    data
  });
}
//删除预盘点单商品
export function deleteReadyStockGood(data) {
  return request({
    url: "/smkapi/Takestock/deleteReadyStockGood",
    method: "post",
    data
  });
}
//删除预盘点单商品
export function addReadyStockGoodByGoodCode(data) {
  return request({
    url: "/smkapi/Takestock/addReadyStockGoodByGoodCode",
    method: "post",
    data
  });
}
// 获取盘点计划单列表
export function getTakeStockPlanList(data) {
  return request({
    url: "/smkapi/Takestock/getTakeStockPlanList",
    method: "post",
    data
  });
}
// 添加盘点计划单
export function addTakeStockPlan(data) {
  return request({
    url: "/smkapi/Takestock/addTakeStockPlan",
    method: "post",
    data
  });
}
// 获取盘点计划单详情
export function getTakeStockPlanDetail(data) {
  return request({
    url: "/smkapi/Takestock/getTakeStockPlanDetail",
    method: "post",
    data
  });
}
// 删除盘点计划单商品
export function deleteTakeStockGoodsPlan(data) {
  return request({
    url: "/smkapi/Takestock/deleteTakeStockGoodsPlan",
    method: "post",
    data
  });
}
//按照盘点计划单生成盘点差异单
export function addTakestockByPlan(data) {
  return request({
    url: "/smkapi/Takestock/addTakestockByPlan",
    method: "post",
    data
  });
}
//记录盘点数据
export function addRealStockNum(data) {
  return request({
    url: "/smkapi/Takestock/addRealStockNum",
    method: "post",
    data
  });
}
//获取商品库存信息
export function findGoodsStock(data) {
  return request({
    url: "/smkapi/Takestock/findGoodsStock",
    method: "post",
    data
  });
}
//添加盘点单
export function addTakestock(data) {
  return request({
    url: "/smkapi/Takestock/addTakestock",
    method: "post",
    data
  });
}
//盘点单详情
export function stockDetail(data) {
  return request({
    url: "/smkapi/Takestock/stockDetail",
    method: "post",
    data
  });
}

//盘点单商品删除
export function stockGoodDelete(data) {
  return request({
    url: "/smkapi/Takestock/stockGoodDelete",
    method: "post",
    data
  });
}
//盘点单删除
export function stockDelete(data) {
  return request({
    url: "/smkapi/Takestock/stockDelete",
    method: "post",
    data
  });
}
//盘点单审核
export function stockCheck(data) {
  return request({
    url: "/smkapi/Takestock/stockCheck",
    method: "post",
    data
  });
}
//修改配送中心
export function setTakeStockDcInfo(data) {
  return request({
    url: "/smkapi/takestock/setTakeStockDcInfo",
    method: "post",
    data
  });
}
//修改入库价格
export function setStockDetailPriceInput(data) {
  return request({
    url: "/smkapi/Takestock/setStockDetailPriceInput",
    method: "post",
    data
  });
}
//商超手持数据采集单
export function planList(data) {
  return request({
    url: "/smkapi/Stocktaking/planList",
    method: "post",
    data
  });
}
//商超手持数据采集单
export function planDetail(data) {
  return request({
    url: "/smkapi/Stocktaking/planDetail",
    method: "post",
    data
  });
}
//商超手持数据采集生成差异单
export function generateDiff(data) {
  return request({
    url: "/smkapi/Stocktaking/generateDiff",
    method: "post",
    data
  });
}
export function diffList(data) {
  return request({
    url: "/smkapi/Stocktaking/diffList",
    method: "post",
    data
  });
}
export function diffDetail(data) {
  return request({
    url: "/smkapi/Stocktaking/diffDetail",
    method: "post",
    data
  });
}